package com.qqtech.qquan.pub.dao;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

import com.qqtech.core.frame.dao.BaseDaoImpl;
import com.qqtech.qquan.pub.model.*;

@Repository
public class PubSysParamDaoImpl extends BaseDaoImpl<PubSysParam> implements PubSysParamDao {
	public static final Logger log = LoggerFactory.getLogger(PubSysParamDaoImpl.class);

	public PubSysParam getByKey(java.lang.String key) {
		return sqlSessionTemplate.selectOne(getSqlName("selectByKey"), key);
	}

	@Override
	public void updateByKey(PubSysParam pubSysParam) {
		sqlSessionTemplate.update(getSqlName("updateByKey"), pubSysParam);

	}
}
